<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>grd.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

  </head>
  <link rel="stylesheet" type="text/css" href="../ext/resources/css/ext-all.css">
  <script type="text/javascript" src="../ext/adapter/ext/ext-base.js"></script>
  <script type="text/javascript" src="../ext/ext-all.js"></script>
  
  <body>
    <div id="hello"></div>
  </body>
  <script type="text/javascript">
    var data=[
      ['zs','22','nan'],
      ['kate','23','nv'],
      ['jim','22','nan'],
      ['tianjun','20','nan'],
      ['wangwu','21','nan'],
      ['dd','24','nv']
      
    ]
    var stor =  new Ext.data.SimpleStore({data:data,fields:['name','age','sex']});
    Ext.onReady(function(){
      var grd = new Ext.grid.GridPanel({
         title:'test grd',
         renderTo: 'hello',
         width: 500,
         height:300,
         columns:[
                 {header:'姓名',dataIndex:'name'},
                 {header:'年龄',dataIndex:'age'},
                 {header:'性别',dataIndex:'sex'}
                 ],
        store: stor
         
      });
    });
  </script>
</html>
